{{#if (or (entityAction.hasBeforeLogics)(entityAction.hasAfterLogics)(eq entityAction.actionType 'DELOGIC'))}}
{{#if entityAction.write}}
{{#each entityAction.actionLogicModel.bpmnDiagram.importParams as |param|}}
{{param.drlString}}
{{/each}}
{{#each entityAction.actionLogicModel.bpmnDiagram.globalParams as |param|}}
global {{param.type}} _{{param.identifier}};
{{/each}}
global {{packageName}}.util.domain.DELogic.Context srfdelogiccontext;

no-loop
{{#each entityAction.actionLogicModel.bpmnDiagram.nodes as |node|}}
    {{#if node.write}}
    rule "{{node.globalCodeName}}"
    ruleflow-group "{{node.globalCodeName}}"
    when
    then
    {{!-- 调用外部行为 --}}
    {{#if node.refMethod}}
    {{packageName}}.core.{{refEntity.module}}.domain.{{refEntity.codeName}} _entity = new {{packageName}}.core.{{refEntity.module}}.domain.{{refEntity.codeName}}();
    CachedBeanCopier.copy(_srfentity, _entity);
    {{camelCase node.refEntity.codeName}}Service.{{camelCase node.refMethod.codeName}}(_entity);
    {{else if self}}
    {{!-- 执行行为 --}}
    srfdelogiccontext.setPointValue(srfdelogiccontext.getPoint().proceed());
    {{else}}
    {{!-- 其他,暂未支持 --}}
    //暂未支持
    {{/if}}

    end

    {{/if}}
{{/each}}
{{/if}}
{{/if}}